package structural.decorator.v2;

/**
 * @Author: 蔡翔
 * @Date: 2019/12/9 11:20
 * @Version 1.0
 */
public class SausageDecorator extends AbstractDecorator{
    public SausageDecorator(ABatterCake aBatterCake) {
        super(aBatterCake);
    }

    @Override
    protected void deSomething() {

    }

    @Override
    protected String getDesc() {
        return super.getDesc()+"加一根香肠";
    }

    @Override
    protected int cost() {
        return super.cost()+2;
    }
}
